home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / RTGMaster / includes / sasc / clib / rtgextra_protos.h next >
Encoding:
C/C++ Source or Header  |  1998-06-24  |  1.3 KB  |  33 lines

  1. /*
  2. **     $VER: rtgmaster_protos.h 1.017 (15 Jan 1998)
  3. */
  4.  
  5. #ifndef CLIB_RTGEXTRA_PROTOS_H
  6. #define CLIB_RTGEXTRA_PROTOS_H
  7.  
  8. #ifndef EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11.  
  12. #ifndef UTILITY_TAGITEM_H
  13. #include <utility/tagitem.h>
  14. #endif
  15.  
  16. #ifndef RTGMASTER_RTGTCPIP_H
  17. #include <rtgmaster/rtgTCPIP.h>
  18. #endif
  19.  
  20. struct RTG_Socket  *OpenClient(struct Library *SBase, char *host, int port, int mode, int protocol);
  21. struct RTG_Socket *OpenServer(struct Library *SBase, int port, int mode, int protocol);
  22. void CloseClient(struct Library *SBase, struct RTG_Socket *s);
  23. void CloseServer(struct Library *SBase, struct RTG_Socket *s);
  24. struct RTG_Socket *RunServer(struct Library *SBase, struct RTG_Socket *s, struct RTG_Buff *in_buffer, struct RTG_Buff *out_buffer, int maxplayers);
  25. int RtgSend(struct Library *SBase, struct RTG_Socket *s, char *message, struct sockaddr_in *receiver, int len);
  26. int RtgRecv(struct Library *SBase, struct RTG_Socket *s, char *message, struct sockaddr_in *sender, int len);
  27. struct RTG_Socket *RtgAccept(struct Library *SBase, struct RTG_Socket *s);
  28. int RtgIoctl(struct Library *SBase,struct RTG_Socket *s,long *arg);
  29. struct sockaddr_in *GetUDPName(struct Library *SBase, struct RTG_Socket *s);
  30. char *RtgInAdr(struct Library *SBase, struct sockaddr_in *si);
  31.  
  32. #endif
  33.